<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		
		
		
		
		<script type="text/javascript">
			var age = prompt("请输入年龄:");
			
			if(age>=18){
				document.write('<img src="../img/hy.jpg"/>');
			}else{
				alert("年龄太小 不能上网");
			}
		</script>
	</body>
</html>
